package com.asset.dispoal.file.repayment;

import com.asset.dispoal.file.repayment.api.FileRepaymentService;
import com.asset.dispoal.file.repayment.dto.SaveRepaymentInfoRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tech.mhuang.pacebox.springboot.protocol.Result;

/**
 * @description:
 * @author: yf
 * @date: 2022-09-29 14:58:51
 */
@RestController
@Api(value = "还款文件管理", tags = "还款文件管理")
@RequestMapping("file/repayment")
public class FileRepaymentController {
    @Autowired
    private FileRepaymentService fileRepaymentService;

    @PostMapping("/save")
    @ApiOperation(value = "还款接口", notes = "还款接口")
    public Result repayment(SaveRepaymentInfoRequest request) {
        return fileRepaymentService.saveRepaymentInfo(request);
    }
}
